package com.asen.plf.domain;


import com.asen.commons.annotation.FieldEnum;
import com.asen.commons.annotation.FieldReference;
import com.asen.commons.core.base.domain.EnableBase;

import com.asen.plf.enums.UserCreateWayEnum;
import com.asen.plf.enums.UserTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户
 *
 * @author ls
 * @date 2024-09-05
 */
@Data
@NoArgsConstructor
@ApiModel("用户")
public class User extends EnableBase {

    public User(Long id) {
        super(id);
    }

    @ApiModelProperty(value = "账号id", position = 100)
    //@FieldReference(Account.class)
    private Long accountId;

    @ApiModelProperty(value = "组织id", position = 105)
    private Integer orgId;

    @ApiModelProperty(value = "职位", position = 110)
    private String position;

    @ApiModelProperty(value = "用户类型", position = 115)
    @FieldEnum(UserTypeEnum.class)
    private Integer type;

    @ApiModelProperty(value = "用户创建方式", position = 120)
    @FieldEnum(UserCreateWayEnum.class)
    private Integer createWay;
}
